import numpy as np
import cv2

img = cv2.imread("C:\\Users\\86191\\Pictures\\Saved Pictures\\face\\face.jpg")

# 浅拷贝
img2 = img
# 深拷贝
img3 = img.copy()

img[100:200, 100:200] = [0,255,0]

cv2.imshow("img", img)
cv2.imshow("img2", img2)
cv2.imshow("img3",img3)
cv2.waitKey(0)